/*
 * ThreadEngineStart.h
 *
 *  Created on: Jan 27, 2013
 *      Author: Drew Prevost
 */

#ifndef THREADENGINESTART_H_
#define THREADENGINESTART_H_

#include "ThreadEngineBase.h"
#include "ThreadEngineSpin.h"
#include "ThreadEnginePrime.h"

class ThreadEngineStart: public ThreadEngineBase
{
public:
  ThreadEngineStart(
                     ThreadServoRate & threadServoExhaust,
                     uint8_t nPinGlowPlug,
                     uint8_t nPinGenConnect,
                     uint8_t nPinStarterMotor,
                     uint8_t nPinGenDisonnect,
                     uint8_t nPinGenMonitor );
  virtual ~ThreadEngineStart();

  virtual bool run();

protected:
  ThreadEngineSpin threadEngineSpin;
  ThreadEnginePrime threadEnginePrime;
};

#endif /* THREADENGINESTART_H_ */
